#ifndef DETAILLINES_H
#define DETAILLINES_H

#include <QWidget>
#include <QMap>
#include <QtCharts>
#include <QChartView>
#include <QSplineSeries>

class DetailLines : public QWidget
{
    Q_OBJECT
public:
    explicit DetailLines(QWidget *parent = nullptr);
    ~DetailLines();
    void appendLine(const QString lineName, QList<QPointF> linePoints, bool isSpline = 1);    //添加、追加曲线
signals:

private:
    QChartView *mChartView;         //显示坐标的
    QChart *mChart;                 //坐标
    QValueAxis *mAxisX,*mAxisY;     //坐标轴

    QHash<QString ,QLineSeries*> mLineHash;

    void chartInit(QChart *chart, QValueAxis *axisX, QValueAxis *axisY);


};

#endif // DETAILLINES_H
